﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ATM
{
    public class Account
    {
        private String ID;
        private int password;
        private Decimal amount;
        private String bank;

        public Account(String id, int password)
        {
            this.ID = id;
            this.password = password;
            this.amount = 0;
            this.bank = "BC";
        }

        public Account(String id, int password, Decimal amount, String bank)
        {
            this.ID = id;
            this.password = password;
            this.amount = amount;
            this.bank = bank;
        }

        public String getID()
        {
            return this.ID;
        }

        public int getPassword()
        {
            return this.password;
        }

        public Decimal getAmount()
        {
            return this.amount;
        }

        public String getBank()
        {
            return this.bank;
        }

        public void increaseAmount(Decimal amount)
        {
            this.amount += amount;
        }

        public void decreaseAmount(Decimal amount)
        {
            this.amount -= amount;
        }
    }
}
